import request from "./request"

// 根据 _id 获取通知
export const getNoticeById = async(_id)=>{
  return await request({
    url:"/notice/find_by_id",
    method:"GET",
    data:{
      _id
    }
  })
}

// 根据 skip 和 limit 获取通知
export const getNoticeByCondition = async(limit,skip)=>{
  return await request({
    url:"/notice/findsome",
    method:"GET",
    data:{
      limit,
      skip
    }
  })
}

// 获取社区重要通知
export const getImportantNotice = async ()=>{
  return await request({
    url:"/notice/find_important",
    method:"GET"
  })
}